﻿<%@ Page Language="VB" AutoEventWireup="false" CodeFile="frmPopupSelectPrint.aspx.vb" Inherits="AMLO_frmPopupSelectPrint" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
     <script type="text/javascript" src="../lib/jsPopup/popupPost.js"></script>
    <style type="text/css">

.black {
	color: #000;

}
.control{
        font-weight:normal;
        font-style: normal;
        font-variant: normal;
        font-size: 14px;
        line-height: 20px;
        font-family: Arial, Helvetica, sans-serif;
    }

</style>
</head>
<body>
    <form id="form1" runat="server">
    <asp:ScriptManager ID="ScriptManager1" runat="server">
    </asp:ScriptManager>
    <div>
    
        <asp:UpdatePanel ID="UpdatePanel1" runat="server">
            <ContentTemplate>
                <table style="width:100%;">
                    <tr>
                        <td>
                            &nbsp;</td>
                        <td align="center">
                            <asp:Label ID="lblAMLO" runat="server" CssClass="control" Font-Bold="True" 
                                Font-Size="X-Large"></asp:Label>
                        </td>
                        <td>
                            &nbsp;</td>
                    </tr>
                    <tr>
                        <td>
                            &nbsp;</td>
                        <td align="center">
                            <asp:HiddenField ID="hdfTempRPTSEQ" runat="server" />
                            <asp:HiddenField ID="hdfTempRptType" runat="server" />
                            <asp:HiddenField ID="hdfStatus" runat="server" />
                            <asp:GridView ID="grdAmlo" runat="server" AutoGenerateColumns="False" 
                                CellPadding="4" ForeColor="#333333" 
                                style="margin-right: 0px; margin-bottom: 0px;" Width="63%">
                                <RowStyle BackColor="#FFFBD6" ForeColor="#333333" />
                                <Columns>
                                    <asp:CommandField ButtonType="Image" HeaderText="พิมพ์" 
                                        SelectImageUrl="~/img/icon/select_icon.gif" ShowSelectButton="True">
                                    <ItemStyle Width="10%" />
                                    </asp:CommandField>
                                    <asp:BoundField DataField="RPTNO" HeaderText="เลขที่">
                                    <ItemStyle HorizontalAlign="Left" Width="20%" />
                                    </asp:BoundField>
                                    <asp:TemplateField HeaderText="ชื่อ">
                                        <ItemTemplate>
                                            <asp:Label ID="Label1" runat="server" 
                                                Text='<%# eval("FirstName") & " " & eval("MidName") & " " & eval("LastName") %>'></asp:Label>
                                        </ItemTemplate>
                                        <ItemStyle HorizontalAlign="Left" Width="35%" />
                                    </asp:TemplateField>
                                    <asp:TemplateField HeaderText="ธุรกรรม">
                                        <ItemTemplate>
                                            <asp:Label ID="Label2" runat="server" 
                                                
                                                Text='<%# iif(eval("RPTIDXTYPE")=1,"ผู้ร่วมทำธุรกรรม",iif(eval("RPTIDXTYPE")=2,"ผู้มอบหมาย","ผู้มอบอำนาจ")) %>'></asp:Label>
                                            <asp:HiddenField ID="hdfRPTSEQ" runat="server" Value='<%# eval("RPTSEQ") %>' />
                                            <asp:HiddenField ID="hdfRPTIDX" runat="server" Value='<%# eval("RPTIDX") %>' />
                                        </ItemTemplate>
                                        <ItemStyle HorizontalAlign="Left" Width="30%" />
                                    </asp:TemplateField>
                                </Columns>
                                <FooterStyle BackColor="#990000" Font-Bold="True" ForeColor="White" />
                                <PagerStyle BackColor="#FFCC66" ForeColor="#333333" HorizontalAlign="Center" />
                                <SelectedRowStyle BackColor="#FFCC66" Font-Bold="True" ForeColor="Navy" />
                                <HeaderStyle BackColor="#FF9933" Font-Bold="True" ForeColor="White" />
                                <AlternatingRowStyle BackColor="White" />
                            </asp:GridView>
                        </td>
                        <td>
                            &nbsp;</td>
                    </tr>
                    <tr>
                        <td>
                            &nbsp;</td>
                        <td align="center">
                            <asp:Button ID="btnPrintReport" runat="server" CssClass="control" 
                                Text="พิมพ์รายงาน" />
                        </td>
                        <td>
                            &nbsp;</td>
                    </tr>
                </table>
            </ContentTemplate>
        </asp:UpdatePanel>
    
    </div>
    </form>
</body>
</html>
